package com.lottery.material.service.portal.user;

import com.lottery.material.pojo.portaluser.UserLikeRecord;

/**
 * Description:    点赞/取消点赞服务接口
 * Author:         sunny
 * CreateDate:     2019-04-15 09:55
 */
public interface UserLikeRecordService {

    /**
     * description: 删除用户点赞记录
     * author sunny
     * createDate 2019-04-15 上午 9:57
     * @param userLikeRecord
     */
    Integer deleteUserLikeRecord(UserLikeRecord userLikeRecord);

    /**
     * description: 保存用户点赞记录
     * author sunny
     * createDate 2019-04-15 上午 9:58
     * @param userLikeRecord
     */
    Integer saveUserLikeRecord(UserLikeRecord userLikeRecord);

    /**
     * description: 根据点赞类型和对象Id查询点赞数
     * author sunny
     * createDate 2019-04-15 上午 10:35
     * @param userLikeRecord
     * @return
     */
    Integer findCountByLikeTypeAndObjectId(UserLikeRecord userLikeRecord);
}
